package yaty.lee.tencent.weibo.modules.oauth2.acg.vo;

import yaty.lee.tencent.weibo.domain.VO;
import yaty.lee.tencent.weibo.util.OAuthPropertiesUtil;

public class CodeAuthVO extends VO {
    private final String client_id = OAuthPropertiesUtil.getKey();
    private String redirect_uri;
    private String response_type;

    public CodeAuthVO() {
        super();
    }

    public String getRedirect_uri() {
        return redirect_uri;
    }

    public void setRedirect_uri(String redirect_uri) {
        this.redirect_uri = redirect_uri;
    }

    public String getResponse_type() {
        return response_type;
    }

    public void setResponse_type(String response_type) {
        this.response_type = response_type;
    }

    public String getClient_id() {
        return client_id;
    }

    @Override
    public String getReqUrl() {
        return "https://open.t.qq.com/cgi-bin/oauth2/authorize";
    }

    public class Back {
        private String code;
        private String openid;
        private String openkey;

        public Back() {
            super();
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public String getOpenkey() {
            return openkey;
        }

        public void setOpenkey(String openkey) {
            this.openkey = openkey;
        }

    }
}
